package cn.edu.scau.cmi.zeyang.composite.consistent;

import java.util.List;

public abstract class ConsistentMember {

	public String name;
	public ConsistentMember parent;
	public ConsistentMember(String name,ConsistentMember parent) {
		this.name = name;
		this.parent = parent;
	}
	public abstract ConsistentMember getParent();
	public abstract void addChild(ConsistentMember child) throws Exception;
	public abstract void deleteAll()throws Exception;
	public abstract List<ConsistentMember> getChildren()throws Exception;

}
